import { defineStore } from 'pinia'
export const useVpnStore = defineStore('vpn', {
    state: () => {
        return {
            favourites: [],
            connectionStatus: false,
            isThisTime: 0,
            bestConnectionLine: {}
        }
    },
    actions: {
        addFav(item) {
            this.favourites.push(item)
        },
        setConnectionStatus() {
            this.connectionStatus = true
        },
        setTimeZero() {
            this.isThisTime = 0
        },
        setTimeDiff() {
            this.isThisTime++
        },
        setConnectionLine(item) {
            this.bestConnectionLine = item
        }
    },
    getters: {
        // addFav: (state) => {
        //     return state.
        // }
    }
})